﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Demo.Model
{
    public class SimpleEntity : Pampa.CRUD.Core.IActiveRecord
    {
        private string property1;
        private int property2;

        public SimpleEntity()
        {
        }

        public string Property1
        {
            get { return property1; }
            set { property1 = value; }
        }

        public int Property2
        {
            get { return property2; }
            set { property2 = value; }
        }

        public bool IsNew
        {
            get { return true; }
        }

        public void Save()
        {
            // TODO
        }

        public void Delete()
        {
            // TODO
        }

        public void Refresh()
        {
            // TODO
        }

        public void BeginTransaction()
        {
            // TODO
        }

        public void RollBackTransaction()
        {
            // TODO
        }

        public void CommitTransaction()
        {
            // TODO
        }
    }
}